/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-11-06
 * Time:11:19
 */
abstract class  Person {
    public abstract  void show();
}
class Teacher extends Person {
    public void show() {
        System.out.println("2222");
    }
}
class student extends Person {
    public void show() {
        System.out.println("33333");
    }
}

public class test {
    public static void t(Person p) {
        p.show();
    }
    public static void main(String[] args) {
        Person p = new Teacher();
        t(p);
        Person p1 = new student();
        t(p1);
    }
}
